package cn.woblog.android.http.callback;


public abstract class AbstractCallback<T> implements ICallback<T> {
	private boolean isCache;
	private String cacheKey;

	@Override
	public T preRequest() {
		return null;
	}

	@Override
	public T postRequest(T result) {
		return result;
	}

	@Override
	public ICallback<T> cache(String key) {
		this.isCache = true;
		this.cacheKey = key;
		return this;
	}

	public boolean isCache() {
		return isCache;
	}

	public String getCacheKey() {
		return cacheKey;
	}
	
}
